import request from '@/utils/request'

// 查询单据跟踪1列表
export function listDetails(query) {
  return request({
    url: '/repair/details/list',
    method: 'get',
    params: query
  })
}

// 查询单据跟踪1详细
export function getDetails(id) {
  return request({
    url: '/repair/details/' + id,
    method: 'get'
  })
}

// 新增单据跟踪1
export function addDetails(data) {
  return request({
    url: '/repair/details',
    method: 'post',
    data: data
  })
}

// 修改单据跟踪1
export function updateDetails(data) {
  return request({
    url: '/repair/details',
    method: 'put',
    data: data
  })
}

// 删除单据跟踪1
export function delDetails(id) {
  return request({
    url: '/repair/details/' + id,
    method: 'delete'
  })
}
